package com.study.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 礼物评论
 * </p>
 *
 * @author flwu
 * @since 2020-03-20
 */
@TableName("tbl_present_comment")
public class PresentComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 礼物ID
     */
    private Long presentId;

    /**
     * 制作者ID
     */
    private Long producerId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 是否删除
     */
    private Boolean isDelete;

    /**
     * 是否上架
     */
    private Boolean isUp;

    /**
     * 是否是游客，0：否；1：是
     */
    private Boolean isVisitor;

    /**
     * 微信union_id
     */
    private String unionId;

    /**
     * 游客昵称
     */
    private String visitorNickname;

    /**
     * 游客头像
     */
    private String visitorAvatarUrl;

    /**
     * 创建时间
     */
    private LocalDateTime createDatetime;

    /**
     * 最后更新时间
     */
    private LocalDateTime updateDatetime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Long getPresentId() {
        return presentId;
    }

    public void setPresentId(Long presentId) {
        this.presentId = presentId;
    }
    public Long getProducerId() {
        return producerId;
    }

    public void setProducerId(Long producerId) {
        this.producerId = producerId;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }
    public Boolean getUp() {
        return isUp;
    }

    public void setUp(Boolean isUp) {
        this.isUp = isUp;
    }
    public Boolean getVisitor() {
        return isVisitor;
    }

    public void setVisitor(Boolean isVisitor) {
        this.isVisitor = isVisitor;
    }
    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }
    public String getVisitorNickname() {
        return visitorNickname;
    }

    public void setVisitorNickname(String visitorNickname) {
        this.visitorNickname = visitorNickname;
    }
    public String getVisitorAvatarUrl() {
        return visitorAvatarUrl;
    }

    public void setVisitorAvatarUrl(String visitorAvatarUrl) {
        this.visitorAvatarUrl = visitorAvatarUrl;
    }
    public LocalDateTime getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(LocalDateTime createDatetime) {
        this.createDatetime = createDatetime;
    }
    public LocalDateTime getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(LocalDateTime updateDatetime) {
        this.updateDatetime = updateDatetime;
    }

    @Override
    public String toString() {
        return "PresentComment{" +
            "id=" + id +
            ", userId=" + userId +
            ", presentId=" + presentId +
            ", producerId=" + producerId +
            ", content=" + content +
            ", isDelete=" + isDelete +
            ", isUp=" + isUp +
            ", isVisitor=" + isVisitor +
            ", unionId=" + unionId +
            ", visitorNickname=" + visitorNickname +
            ", visitorAvatarUrl=" + visitorAvatarUrl +
            ", createDatetime=" + createDatetime +
            ", updateDatetime=" + updateDatetime +
        "}";
    }
}
